package com.houxy.repository.mapper;

import com.houxy.repository.model.entity.Expert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExpertMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Expert record);

    int insertSelective(Expert record);

    Expert selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Expert record);

    int updateByPrimaryKey(Expert record);

    List<Expert> findAll();

    List<Expert> findByHospital(int hospitalId);

    List<Expert> findAllByCondition(@Param("hospitalId") Integer hospitalId, @Param("departmentId") Integer departmentId,
                                    @Param("type") String type, @Param("name") String name);

    Expert findByUserName(String userName);
}